package com.company.cloud.admin.modules.admin.models;

import java.util.ArrayList;
import java.util.List;

import com.company.cloud.admin.modules.cache.models.PermissionModel;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class MenuResultInfo {

	private List<PermissionModel> menus;
	
	private List<PermissionModel> buttons;
	
	
	public void addButton(PermissionModel item) {
		if(item==null) {
			return;
		}
		if(this.buttons==null) {
			this.buttons=new ArrayList<PermissionModel>();
		}
		this.buttons.add(item);
	}
}
